using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "Condition10-主动攻击的这个棋子", menuName = "Skill/Condition/Condition10-主动攻击的这个棋子", order = 10)]
public class Condition10 : ConditionBase
{
    public override bool Evaluate(Pair pair,GameEvent e)
    {
        if (e is not AttackChessEvent attackChessEvent) return false;
        return attackChessEvent.AttackChess == pair.Chess;
    }
}